<template>
  <el-dialog :visible.sync="dialogVisible">
    <el-form :model="form">
      <el-form-item label="单据时间" label-width="100px">
        <el-date-picker v-model="form.kwDocDate1" type="date" placeholder="选择日期"></el-date-picker>
        <span>-</span>
        <el-date-picker v-model="form.kwDocDate2" type="date" placeholder="选择日期"></el-date-picker>
      </el-form-item>
      <el-form-item label="单号" label-width="100px">
        <el-input v-model="form.kwOrderCode" autocomplete="off"></el-input>
      </el-form-item>
      <el-form-item label="品名" label-width="100px">
        <el-input v-model="form.kwProduction" autocomplete="off"></el-input>
      </el-form-item>
      <el-form-item label="旧料号" label-width="100px">
        <el-input v-model="form.kwOldNumber" autocomplete="off"></el-input>
      </el-form-item>
      <el-form-item label="销售单号" label-width="100px">
        <el-input v-model="form.kwSalesOrder" autocomplete="off"></el-input>
      </el-form-item>
    </el-form>
    <div
      slot="title"
      style="border-bottom: 1px dashed #dcdfe6;font-size: larger;padding-bottom: 10px;"
    >
      <span>搜索框</span>
    </div>
    <div slot="footer" style="border-top: 1px dashed #dcdfe6;font-size: larger;padding-top: 10px;">
      <el-button @click="dialogVisible = false">取 消</el-button>
      <el-button type="primary" @click="schClk">搜 索</el-button>
    </div>
  </el-dialog>
</template>
<script>
export default {
  components: {},
  data() {
    return {
      form: {
        kwDocDate1: '',
        kwDocDate2: '',
        kwProduction: '',
        kwOldNumber: '',
        kwOrderCode: '',
        kwSalesOrder:'',
      },
      dialogVisible: false
    }
  },
  methods: {
    schClk() {
      this.dialogVisible = false
      this.$emit('searchBtnClick')
    }
  },
  mounted() {}
}
</script>
